package com.twu.biblioteca;

class Movie {

    protected String name;
    protected int year;
    protected String director;
    protected Rating ratingObject;
    protected String rating;
    public Boolean available = true;
    protected Customer owner;

    public Movie(String movieName, int movieYear, String movieDirector, int movieRating){
        name = movieName;
        year = movieYear;
        director = movieDirector;
        ratingObject = new Rating(movieRating);
        rating = ratingObject.value;
    }

    public Movie(String movieName, int movieYear, String movieDirector){
        name = movieName;
        year = movieYear;
        director = movieDirector;
        ratingObject = new Rating(0);
        rating = ratingObject.value;
    }

}